package com.theory.core;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan({"com.theory"})  // 其实SpringBootApplication已经有包扫描了，但是里面的默认范围是本包目录下，这里为了要扫描到其他模块的组件，所以将其提升了一级
// 即在core模块下，包路径为com.theory.core，想扫描到base模块下的com.theory.base，则需配置扫描路径为com.theory
public class ServiceCoreApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceCoreApplication.class, args);
    }
}